<?php

/* @var $this yii\web\View */

$this->title = 'login';
$this->registerCssFile('@web/css/login.css',['depends'=>['app\assets\AppAsset']]);
?>
<div class="container">
    <div class="sign">
        <div class="sign-top-wrap">
            <p><span>用户登录</span></p>
            <p><span>让您体验更好的学习效果</span></p>
        </div>
        <form class="form" id="login" method="post" action="http://www.dianketai.com/Passport/">
            <div class="form-group">
                <label for="username">邮箱:</label>
                <input name="user_email" type="text" class="user-input" id="username" placeholder="用户名 Username">
                <div class="icons hidden"><i class="fa fa-check" id="correct-icon"></i></div>
            </div>
            <div class="form-group">
                <label for="userpassword">密码:</label>
                <input name="user_pwd" type="password" class="user-input" id="userpassword" placeholder="密码 Password">
                <div class="icons hidden"><i class="fa fa-close" id="wrong-icon"></i></div>
            </div>
            <div class="form-group" id="inputCheck">
                <label for="checkValue" class="sr-only">请输入验证码: </label>
                <input type="text" name="verify" id="checkValue" placeholder="请输入验证码">
                <img src="http://www.dianketai.com/Home/Passport/Verify_c" id="checkImg" alt="验证码" onclick="this.src='http://www.dianketai.com/Home/Passport/Verify_c?'+new Date().getTime();">
            </div>
            <input name="url" type="hidden" id="_csrf" value="http://<?=$_SERVER['SERVER_NAME'];?><?= \yii\helpers\Url::to('@web'); ?>">
        </form>
        <div class="reminder btn btn-warning sr-only">
            <div class="icons"><i class="fa fa-exclamation" id="alert-icon"></i></div>
            <span>请输入正确的密码</span>
        </div>
        <div class="button">
            <div class="sign-in" onclick="$('#login').submit();">
                <a href="#">登录 <span>Login</span></a>
            </div>
            <div class="forget-id">
                <a href="http://www.dianketai.com/Index/retrieve_pwd">忘记密码? <span>Forget Password?</span></a>
            </div>
        </div>
        <div class="sign-up">
            <p>还没有账户?</p>
            <div class="sign-up-set">
                <a href="http://www.dianketai.com/user/regWindow">注册  <span>Register</span></a>
            </div>
        </div>
        <div class="sign-buttom"></div>
    </div>
</div>
